package com.clip.util;
/**
 * 字符串处理类
 * @author zhutiechun
 *
 */
public class StringUtils {
	/**
	 * 还原纯净字符串
	 * @param temp
	 * @return
	 */
	public static String cleanString(String temp){
		return temp.trim().toString();
	}
	/**
	 * 转换成INT
	 * @param temp
	 * @return
	 */
	public static Integer parseInt(String temp){
		return Integer.parseInt(StringUtils.cleanString(temp));
	}
	/**
	 * 转换成String
	 * @param temp
	 * @return
	 */
	public static String parseString(int temp){
		return cleanString(String.valueOf(temp));
	}
}
